package exception;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * 异常表
 */
public class ExceptionTableDemo {

    public static void main(String[] args) {

        Connection connection = null;
        try {
            connection = DriverManager.getConnection("123");
        } catch (SQLException e) {
            e.printStackTrace();
        } finally {
            if (connection != null) {
                try {
                    connection.close();
                } catch (SQLException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
